import java.awt.Graphics;
import java.awt.Insets;

public final class Frame extends java.awt.Frame {
	private static final long serialVersionUID = 1886511976539734167L;
	Applet applet;

	public Frame(Applet applet, int width, int height) {
		(this).applet = applet;
		this.setTitle("Jagex");
		this.setResizable(false);
		this.setVisible(true);
		this.toFront();
		this.setSize(width + 8, height + 28);
	}

	@Override
	public Graphics getGraphics() {
		Graphics graphics = super.getGraphics();
		Insets insets = super.getInsets();
		graphics.translate(insets.left, insets.top);
		return graphics;
	}

	@Override
	public final void update(Graphics graphics) {
		(this).applet.update(graphics);
	}

	@Override
	public final void paint(Graphics graphics) {
		(this).applet.paint(graphics);
	}
}
